//
//  OMURL.h
//  RequestTest
//
//  Created by xntech on 13-8-19.
//  Copyright (c) 2013年 xntech. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface OMURL : NSObject
{
    NSString  *_absoluteUrl;
    NSMutableDictionary  *_params;
}
+ (NSMutableDictionary *)parseUrl:(NSString *)urlString;

- (id)initWithAbsoluteString:(NSString *)absoluteUrl;

- (void)addParam:(id)object forKey:(id)key;
- (void)addIntParam:(int)value forKey:(id)key;
- (void)addLongParam:(long long)value forKey:(id)key;
- (void)addDoubleParam:(double)value forKey:(id)key;
- (void)addBoolParam:(BOOL)value forKey:(id)key;;
- (void)addDateParam:(NSDate *)date forKey:(id)key;

- (void)setParams:(NSDictionary *)dic;
- (void)addParams:(NSDictionary *)dic;
- (NSString  *)urlString;
- (NSURL *)URL;
@end
